//==============================================================================
// Copyright 2009 Sidney Shek All Rights Reserved
//==============================================================================
// SYSTEM:        ITEC824-MajorProject-Server
// FILE NAME:	  TimesheetNotification.java
// DESCRIPTION:   
// AUTHOR:        sshek2
// CREATED:       17/04/2009
//
// REVISION HISTORY:
// $Author: $
// $Id:  $
//
//==============================================================================
//

package itec824.server.model;

import itec824.common.model.User;

import java.util.Date;

/**
 * Contains a notification record. This is used to record when a timesheet is
 * ready for approval, or if a timesheet was rejected (and so needs to be
 * fixed and resubmitted).
 *
 * @version $Revision: $
 * @author sshek2
 */
public class TimesheetNotification
{
    /**
     * @return Returns the notificationId.
     */
    public long getNotificationId()
    {
        return myNotificationId;
    }
    /**
     * @param aNotificationId The notificationId to set.
     */
    public void setNotificationId(long aNotificationId)
    {
        myNotificationId = aNotificationId;
    }
    /**
     * @return Returns the comment.
     */
    public String getComment()
    {
        return myComment;
    }
    /**
     * @param aComment The comment to set.
     */
    public void setComment(String aComment)
    {
        myComment = aComment;
    }
    /**
     * @return Returns the readFlag.
     */
    public boolean isReadFlag()
    {
        return myReadFlag;
    }
    /**
     * @param aReadFlag The readFlag to set.
     */
    public void setReadFlag(boolean aReadFlag)
    {
        myReadFlag = aReadFlag;
    }
    /**
     * @return Returns the notificationDate.
     */
    public Date getNotificationDate()
    {
        return myNotificationDate;
    }
    /**
     * @param aNotificationDate The notificationDate to set.
     */
    public void setNotificationDate(Date aNotificationDate)
    {
        myNotificationDate = aNotificationDate;
    }
    /**
     * @return Returns the toNotify.
     */
    public User getToNotify()
    {
        return myToNotify;
    }
    /**
     * @param aToNotify The toNotify to set.
     */
    public void setToNotify(User aToNotify)
    {
        myToNotify = aToNotify;
    }
    /**
     * @return Returns the notifier.
     */
    public User getNotifier()
    {
        return myNotifier;
    }
    /**
     * @param aNotifier The notifier to set.
     */
    public void setNotifier(User aNotifier)
    {
        myNotifier = aNotifier;
    }
    /**
     * @return Returns the notificationType.
     */
    public int getNotificationType()
    {
        return myNotificationType;
    }
    /**
     * @param aNotificationType The notificationType to set.
     */
    public void setNotificationType(int aNotificationType)
    {
        myNotificationType = aNotificationType;
    }
    /**
     * @return Returns the timesheet.
     */
    public Timesheet getTimesheet()
    {
        return myTimesheet;
    }
    /**
     * @param aTimesheet The timesheet to set.
     */
    public void setTimesheet(Timesheet aTimesheet)
    {
        myTimesheet = aTimesheet;
    }
    private long myNotificationId;
    private String myComment;
    private boolean myReadFlag;
    private Date myNotificationDate;
    private User myToNotify;
    private User myNotifier;
    private int myNotificationType;
    private Timesheet myTimesheet;
}
